import React, {Component} from 'react';
import {Button} from 'antd';
import {config} from "../config";


class Index extends Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        return (
            <div style={{paddingTop: '50px'}}>
                <div>
                    <div style={{textAlign: 'center', marginTop: '100px'}}>
                        <Button style={{width: '96%', height: '45px', fontSize: '18px'}} type='primary'
                                onClick={() => this.handleDrop('/customerOperate')}>客户通道</Button>
                    </div>
                    <div style={{textAlign: 'center', marginTop: '60px'}}>
                        <Button style={{width: '96%', height: '45px', fontSize: '18px'}} type='primary'
                                onClick={() => this.handleDrop('/register')}>员工通道</Button>
                    </div>
                </div>
            </div>
        )
    };

    /**
     * 处理跳转页面事件
     * @param path
     */
    handleDrop(path) {
        this.props.history.push(config.path + path);
    }
}

export default Index;